<?php
/**
 * Created by PhpStorm.
 * User: xiao
 * Date: 2017/6/13
 * Time: 上午11:50
 */

namespace app\src\insurance\logic;


use app\src\base\logic\BaseLogic;
use app\src\insurance\model\Insurance;


class InsuranceLogic extends BaseLogic{
    public function _init()
    {
        $this->setModel(new Insurance());
    }


    /*
     * 获取保险列表
     */
    public function getList(){
        $list=(new InsuranceLogic())->queryNoPaging(['parent_id'=>0]);

        if($list['status']){
            return $list;
        }else{
            return($list);
        }

    }
}